package cn.cnsy123.blog.application.encoder;

/**
 * @author yangpengfei
 * @description 密码加密与比较
 * @date 2019-10-15 18-35-39
 */
public interface PasswordEncoder {

    /**
     * 加密
     * @param oldPass
     * @param passSalt
     * @return
     */
    String encode(String oldPass,String passSalt);


    /**
     * 对比密码
     * @param encryptPass
     * @param inputPass
     * @return
     */
    boolean equals(String encryptPass,String inputPass,String passSalt);
}
